#include "towerbase.h"
#include <QPainter>
#include <QPixmap>
towerbase::towerbase(QPoint pos, QPixmap Pic):Tower_pos(pos),_Pic(Pic)
{



    Attack_range=150;
    Attack_speed=100;
    Tower_damage=70;
}
void towerbase::draw(QPainter *painter)
{
    painter->save();
    painter->setPen(Qt::blue);

    painter->drawEllipse(Tower_pos, Attack_range, Attack_range);

    static const QPoint transpoint(-22,-22);

    painter->translate(Tower_pos);
    painter->drawPixmap(transpoint, _Pic);
    painter->restore();
}
